
const routes = [
  {
    path: "/",
    name: "main",
    component: () => import("@/views/main/Main.vue"),
    redirect: '/home',
    mate: {
      title: '首页',
      icon: "ios-analytics"
    },
    children: [
      {
        path: "home",
        name: 'home',
        component: () => import("@/views/home/index.vue"),
      },
    ],
  },
  {
    path: "/employee",
    name: "employee",
    component: () => import("@/views/employee/index.vue"),
    mate: {
      title: '员工管理',
      icon: "ios-analytics"
    }
  },
  {
    path: "/test",
    name: 'test',
    component: () => import("@/views/test/Test.vue"),
    mate: {
      title: '测试',
      icon: "ios-analytics"
    },
  },
  {
    path: "/login",
    name: "login",
    component: () => import("@/views/login/Login.vue"),
  },
  {
    path: "/:pathMatch(.*)*",
    component: () => import("@/views/404/404.vue"),
  },
];

export default routes;
